import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import org.junit.*;

/**
 * @author <a href='mailto:maruichao52@gmail.com'>MRC</a>
 * @since 2020/12/7
 */
public class Main {

    @BeforeClass
    public static void setUpBeforeClass() throws Exception {
        System.out.println("BeforeClass()");
    }

    @AfterClass
    public static void tearDownAfterClass() throws Exception {
        System.out.println("AfterClass()");
    }

    @Before
    public void setUp() throws Exception {
        System.out.println("    Before()");
    }

    @After
    public void tearDown() throws Exception {
        System.out.println("    After()");
    }

    public Main() {
        System.out.println("  new Main()");
    }

    @Test
    public void testA() {
        System.out.println("    testA()");
    }

    @Test
    public void testB() {
        JSONObject desc = JSON.parseObject("{'age':'1'}");
        System.out.println("    testB()");
        System.out.println(desc.getInteger("age"));
    }

    @Test
    public void testC() {
        System.out.println("    testC()");
    }
}
